/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ParTreeVisualizer;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;

/**
 *
 * @author mwh
 */
public class FilenameFrame extends JFrame{


    public FilenameFrame(String fn) {
          setTitle("Enter filename");
        setSize(300, 200);
        
        PrintedPanel pp = new PrintedPanel(fn);
        add(pp, BorderLayout.CENTER);
        PrintedPanelButton ppb = new PrintedPanelButton(new okAction());
        add(ppb, BorderLayout.SOUTH);

    }
    
    class okAction implements ActionListener {

        public void actionPerformed(ActionEvent arg0) {

            dispose();
        }
    }
    

}
